package dao

import (
	"ecommerce-customer-support-chat/global"
	"ecommerce-customer-support-chat/internal/model"
)

func GetListChat(content string) []*model.Customer {
	var req []*model.Customer
	if err := global.DB.Where("content like ?", "%"+content+"%").Find(&req).Error; err != nil {
		return []*model.Customer{}
	}
	return req
}
